package cn.tedu.spring.di;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author lhd
 * @date 2024/4/16
 * @apiNote 测试类
 */
public class TestUserDao {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext("cn.tedu.spring.di");
        UserDao usedao = context.getBean(UserDao.class);
        System.out.println(usedao.toString());
        usedao.run();

    }
}
